/*
 * Copyright 2003-2009 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */
package com.argot;

/**
 * TypeMapper is an interface which is used to manage the mapping of data
 * types from a TypeMap to a type library.  If there are particular requirements
 * regarding type versions or constraints on selected types, they should be
 * handled by an implementation of this interface.
 * 
 * @author David Ryan
 *
 */
public interface TypeMapper 
{
	public void initialise(TypeMap map) throws TypeException;
		
	public int map(int definitionId) throws TypeException;
	
	public int mapReverse(int streamId) throws TypeException;

	public int mapDefault(int nameId) throws TypeException;
}
